Cannot seem to change password length validations
-
mrflip
- State changed from new to open
Would you consider changing it to use mattr_accessor -- see lib/authentication.rb for example usage? I think that's the rails-ier way you want. The only changes at the plugin level would be in lib/authentication/by_password.rb and you could ditch the methods.
Figuring out the scope might make it complicated, and I can make the change if it gives you trouble.
(more on mattr_accessor: http://toolmantim.com/article/20...
Thanks for the patch!
-
sermoa
Hmm, i am trying to change it to mattr_accessor like you suggest ...
It does not seem to work because you need to load the module before you can set the value, but in loading the module you also end up setting up the validation, before getting a chance to override it.
It is a catch-22, is it not?
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.